package com.juben.svr.service.impl;

import com.juben.svr.domain.HetongZujian;
import com.juben.svr.mapper.HetongZujianmapper;
import com.juben.svr.service.HetongZujianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HetongZujianImpl implements HetongZujianService {

    @Autowired
    private HetongZujianmapper hetongZujianmapper;

    public boolean insertHeTongZujian(HetongZujian hetongZujian){
        boolean result=hetongZujianmapper.insertHeTongZujian(hetongZujian);
        System.out.println("增加组件记录情况:"+result);
        return result;
    }

    public HetongZujian getHetongZujian(HetongZujian hetongZujian){
        System.out.println("getHetongZujianImpl:"+hetongZujian);
        HetongZujian hetongZujian3=hetongZujianmapper.getHetongZujian(hetongZujian);
        System.out.println("获取到的hetongZujian:"+hetongZujian3);
        return hetongZujian3;
    }
}
